﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SyncWaterForPeople.Model;
using SyncWaterForPeople.DataAccess;

namespace SyncWaterForPeople.Controller
{
    public class SyncController
    {
        private static SyncStorage storage = new SyncStorage();

        public SyncController()
        { }

        public List<UserWS> GetUserList()
        {            
            return storage.GetUserList();
        }

        public List<KardexWS> GetKardexList()
        {            
            return storage.GetKardexList();
        }

        public List<CutSupplyWS> GetCutSupplies()
        {
            return storage.GetCutSupplies();
        }

        public List<ReconnectionWS> GetReconnections()
        {
            return storage.GetReconnections();
        }

		public decimal GetBaseWaterConsume()
		{
			return storage.GetBaseWaterConsume();
		}

        public void SaveWaterReadingList(List<WaterReadingWS> list)
        {
            storage.SaveWaterReadingList(list);
        }

		public void SaveCutSupplyList(List<CutSupplyWS> list)
		{
			storage.SaveCutSupplyList(list);
		}

		public void SaveReconnectionList(List<ReconnectionWS> list)
		{
			storage.SaveReconnectionList(list);
		}

		public void SaveCollectControlList(List<WaterReadingWS> wrList)
		{            
			storage.SaveCollectControlList(wrList);
		}
    }
}